package com.wnxy.sddfp.trade.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 借款信息表
 * </p>
 *
 * @author Jet
 * @since 2024-02-20
 */
@Getter
@Setter
@ApiModel(value = "BorrowRecord对象", description = "借款信息表")
public class BorrowRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId("ID")          // 分表字段
    private Long id;

    @ApiModelProperty("用户ID")
    @TableField("USER_ID")   // 分库字段
    private Long userId;

    @ApiModelProperty("用户编码")
    private String userCode;

    @ApiModelProperty("借款编号")
    private String borrowRecordNo;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("类型")
    private String type;

    @ApiModelProperty("借款期限(天)")
    private Integer period;

    @ApiModelProperty("投资年化利率")
    private BigDecimal investRate;

    @ApiModelProperty("借款年化利率")
    private BigDecimal borrowerRate;

    @ApiModelProperty("平台佣金年化利率")
    private BigDecimal commissionRate;

    @ApiModelProperty("还款方式")
    private String repaymentWay;

    @ApiModelProperty("借款金额")
    private BigDecimal amount;

    @ApiModelProperty("借款状态")
    private String borrowStatus;

    @ApiModelProperty("创建时间")
    private Date createDate;

    @ApiModelProperty("修改时间")
    private Date modifyDate;

    @ApiModelProperty("可用状态")
    private Boolean status;

    @ApiModelProperty("请求流水号")
    private String reqCode;


}
